home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 800 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  838 b 

  1. Path: mail2news.demon.co.uk!escan.demon.co.uk
  2. From: Bill Birrell <bill@escan.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: C or C++ for a 14-year old?
  5. Date: Tue, 09 Jan 1996 06:08:00
  6. Message-ID: <821168884.AA00166@escan.demon.co.uk>
  7. Reply-To: bill@escan.demon.co.uk
  8. X-NNTP-Posting-Host: escan.demon.co.uk
  9. X-Mail2News-Path: escan.demon.co.uk
  10.  
  11.  > Personally, I think it's just as easy for a beginner
  12.  > to understand
  13.  
  14.  >    i = 1
  15.  >    while i <= 10
  16.  >       print "your name here"
  17.  >    done
  18.  
  19.     Except that it needs to be:-
  20.  
  21.     while (i++ <= 10).
  22.  
  23.             Unless the control variable is incremented or
  24. decremented or otherwise changed so that it can eventually become 10 or more,
  25. such a loop cannot terminate. A 14-year old can be expected to realise this.
  26.  
  27. ho-hum.
  28.  
  29. --
  30. Regards,
  31. Bill Birrell.
  32. internet:       bill@escan.demon.co.uk
  33.